﻿using Admin.NET.Core;
namespace Admin.NET.Application.Entity;

/// <summary>
/// 试场
/// </summary>
[SugarTable("Shichang","试场")]
[SugarIndex("unique_shichang_kaoshiId_shichangNum", nameof(Shichang.KaoshiId), OrderByType.Desc, nameof(Shichang.ShiChangNum), OrderByType.Desc, true)]
public class Shichang  : EntityBase
{
    /// <summary>
    /// 考试
    /// </summary>
    [Required]
    [SugarColumn(ColumnName = "KaoshiId", ColumnDescription = "考试")]
    public long KaoshiId { get; set; }
    
    /// <summary>
    /// 试场号
    /// </summary>
    [Required]
    [SugarColumn(ColumnName = "ShiChangNum", ColumnDescription = "试场号", Length = 32)]
    public string ShiChangNum { get; set; }
    
    /// <summary>
    /// 人数
    /// </summary>
    [Required]
    [SugarColumn(ColumnName = "Renshu", ColumnDescription = "人数")]
    public int Renshu { get; set; }
    
    /// <summary>
    /// 地址1
    /// </summary>
    [SugarColumn(ColumnName = "Address1", ColumnDescription = "地址1", Length = 32)]
    public string? Address1 { get; set; }
    
    /// <summary>
    /// 地址2
    /// </summary>
    [SugarColumn(ColumnName = "Address2", ColumnDescription = "地址2", Length = 32)]
    public string? Address2 { get; set; }
    
    /// <summary>
    /// 位置
    /// </summary>
    [SugarColumn(ColumnName = "Weizhi", ColumnDescription = "位置", Length = 32)]
    public string? Weizhi { get; set; }
    
    /// <summary>
    /// 创建者姓名
    /// </summary>
    [SugarColumn(ColumnName = "CreateUserName", ColumnDescription = "创建者姓名", Length = 64)]
    public string? CreateUserName { get; set; }
    
    /// <summary>
    /// 修改者姓名
    /// </summary>
    [SugarColumn(ColumnName = "UpdateUserName", ColumnDescription = "修改者姓名", Length = 64)]
    public string? UpdateUserName { get; set; }
    
}
